cat iperf3-100G.sh
#!/bin/bash

test="mtu9000"
dir=$test/p

echo "dir $dir"

num_client=$1
op_client=$2
ip_client=192.168.138.60

rm -rf $dir/*

for((i=1; i<=$num_client; i++))
do
    echo "iperf3 -c $ip_client -p 5200+$i -t 60 -Z -O 10 --logfile ${dir}/iperf3_$i.log $op_client "
    iperf3 -c $ip_client -p `expr 5200 + $i` -t 60 -Z -O 10 --logfile $dir/iperf3_$i.log $op_client &
    #iperf3 -c $ip_client -t 60 -Z -O 10 --logfile $dir/iperf3_$i.log $op_client &
done





cat data_process.sh
#!/bin/bash


test=mtu9000

dir="${test}/p/*"

echo "dir $dir"

echo "" >${test}/extractp$1.txt

for iperflog in ${dir[*]}
do
    #if [ -d "$iperflog" ]; then
        more $iperflog | grep "sender" | awk '{print $7}' >> ${test}/extractp$1.txt

    #fi
done

sum=`awk '{sum += $1};END {print sum}' ${test}/extractp$1.txt`
echo "sum is ${sum}"


 tree mtu9000/
mtu9000/
├── extractp.txt
└── p
    ├── iperf3_10.log
    ├── iperf3_11.log
    ├── iperf3_12.log
    ├── iperf3_13.log
    ├── iperf3_14.log
    ├── iperf3_15.log
    ├── iperf3_16.log
    ├── iperf3_1.log
    ├── iperf3_2.log
    ├── iperf3_3.log
    ├── iperf3_4.log
    ├── iperf3_5.log
    ├── iperf3_6.log
    ├── iperf3_7.log
    ├── iperf3_8.log
    └── iperf3_9.log
[xuym@fpgaws1 corundrum-test]$





